<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Contact Form
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Contact Form</h2>
    <p>
        You can use this form to contact us.
    </p>
    <%= Html.ValidationSummary() %>
    <% using (Html.BeginForm())
       { %>
    <div>
        <table>
            <tr>
                <td>
                    Name:
                </td>
                <td>
                    <%= Html.TextBox("name") %>
                    <%= Html.ValidationMessage("name")%>
                </td>
            </tr>
            <tr>
                <td>
                    Email:
                </td>
                <td>
                    <%= Html.TextBox("email") %>
                    <%= Html.ValidationMessage("email") %>
                </td>
            </tr>
            <tr>
                <td>
                    URL:
                </td>
                <td>
                    <%= Html.TextBox("url") %>
                    <%= Html.ValidationMessage("url")%>
                </td>
            </tr>
            <tr>
                <td>
                    Subject:
                </td>
                <td>
                    <%= Html.TextBox("subject")%>
                    <%= Html.ValidationMessage("subject")%>
                </td>
            </tr>
            <tr>
                <td>
                    Body:
                </td>
                <td>
                    <%= Html.TextArea("body") %>
                    <%= Html.ValidationMessage("body")%>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="submit" value="Send" />
                </td>
            </tr>
        </table>
    </div>
    <% } %>
</asp:Content>
